//导入Vue
import Vue from 'vue'
//导入入口组件App.vue
import App from '@/App'
//导入路由
import router from '@/router'
//导入Vuex
import store from '@/store'
//导入element-ui的核心js文件
import ElementUI from 'element-ui'
//导入element-ui的css样式文件
import 'element-ui/lib/theme-chalk/index.css'
//导入自定义scss样式文件
import '@/assets/style/index.css'
import '@/assets/style/icon.css'
import '@/assets/style/main.css'
// import '@/assets/style/color-dark.css'
import '@/assets/style/color-green.css'
//导入echarts
import * as echarts from 'echarts'
//导入工具类
import http from '@/utils/http'
//导入mock数据
import mock from '@/assets/json/mock.json'

//在Vue中使用ElementUI
Vue.use(ElementUI)

Vue.config.productionTip = false

Vue.prototype.$echarts = echarts
Vue.prototype.$ajax = http
Vue.prototype.$mock = mock

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
